Be simpler and more consistent about reporting I/O errors.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 18:30:52 +0000 (11:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 18:30:52 +0000 (11:30 -0700)
commitc3c561a8027d0e5760687c2cd1e1a514c476b7ed
tree4993e7d5a7807925067e865bdc2396c6217376a1
parentc2f2e540c9b2352011339d2f666c3b3ac577410f
Be simpler and more consistent about reporting I/O errors.

* fileio.c (Fcopy_file, Finsert_file_contents, Fwrite_region):
Say "Read error" and "Write error", rather than "I/O error", or
"IO error reading", or "IO error writing", when a read or write
error occurs.
* process.c (Fmake_network_process, wait_reading_process_output)
(send_process, Fprocess_send_eof, wait_reading_process_output):
Capitalize diagnostics consistently.  Put "failed foo" at the
start of the diagnostic, so that we don't capitalize the
function name "foo".  Consistently say "failed" for such
diagnostics.
* sysdep.c, w32.c (serial_open): Now accepts Lisp string, not C string.
All callers changed.  This is so it can use report_file_error.
* sysdep.c (serial_open, serial_configure): Capitalize I/O
diagnostics consistently as above.
src/ChangeLog
src/fileio.c
src/process.c
src/sysdep.c
src/systty.h
src/w32.c